using System;
using System.Data;
using System.Runtime.Serialization;

namespace DataAccess
{	
	[Serializable()]
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public class AdminAreaData : DataTable
	{
		public AdminAreaData()
		{
			BuildDataTables();
		}
		protected AdminAreaData(SerializationInfo info, StreamingContext context)
		{
			//
		}
		public const string ART_USUARIOS_AREA_ARTISTICAS_TABLE = "ART_USUARIOS_AREA_ARTISTICAS";
		public const string ART_AUA_ID_FIELD = "AUA_ID";
		public const string ART_USU_ID_FIELD = "USU_ID";
		public const string ART_ARD_ID_FIELD = "ARD_ID";
		//Campos para el Listado
		public const string ART_PER_NOMBRE_FIELD = "PER_NOMBRE";
		public const string ART_USU_NOMBRE_FIELD = "USU_NOMBRE";
		public const string ART_USU_CORREO_ELECTRONICO_FIELD = "USU_CORREO_ELECTRONICO";
		public const string ART_ARD_AREA_ARTISTICA_FIELD = "ARD_AREA_ARTISTICA";				

		private void BuildDataTables()
		{			
			Columns.Add(ART_AUA_ID_FIELD, typeof (Decimal));
			Columns[ART_AUA_ID_FIELD].Caption = "ID";

			Columns.Add(ART_USU_ID_FIELD, typeof (Decimal));
			Columns[ART_USU_ID_FIELD].Caption = "Codigo Usuario";

			Columns.Add(ART_ARD_ID_FIELD, typeof (Decimal));
			Columns[ART_ARD_ID_FIELD].Caption = "Codigo Area";

			Columns.Add(ART_PER_NOMBRE_FIELD, typeof (string));
			Columns[ART_PER_NOMBRE_FIELD].Caption = "Perfil";

			Columns.Add(ART_USU_NOMBRE_FIELD, typeof (string));
			Columns[ART_USU_NOMBRE_FIELD].Caption = "Nombre Usuario";

			Columns.Add(ART_USU_CORREO_ELECTRONICO_FIELD, typeof (string));
			
			Columns.Add(ART_ARD_AREA_ARTISTICA_FIELD, typeof (string));			

			TableName = ART_USUARIOS_AREA_ARTISTICAS_TABLE;

			this.PrimaryKey = new DataColumn[] {this.Columns[AdminAreaData.ART_AUA_ID_FIELD]};
		}        
		public void addRegimen(DataRow row)
		{
			this.Rows.Add(row);
		}    

	}
}
